﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Blog.Models
{
    public class CommentModel
    {
        [Required]
        public int CommentId { get; set; }

        [Required]
        [DataType(DataType.MultilineText)]
        [StringLength(maximumLength: 2000, MinimumLength = 5)]
        public string CommentText { get; set; }

        [DataType(DataType.Text)]
        [StringLength(100)]
        public string Name { get; set; }

        [DataType(DataType.EmailAddress)]
        [StringLength(100)]
        public string Email { get; set; }

        [DataType(DataType.DateTime)]
        public System.DateTime CreationDate { get; set; }

        public int PostId { get; set; }
    }
}